<?php

/**
 * Manage differents Message types
 * @author ntourne
 * @date 23/05/2011
 */

class Message {

	const TYPE_SUCCESS = "success";
	const TYPE_ERROR = "error";
	const TYPE_WARNING = "warning";
	const TYPE_NOTIFY = "notify";

	// Contacto
	public static $NOMBRE_CANT_EMPTY = array("type" => Message::TYPE_ERROR, "code" => "nombre_cant_empty", "text" => "Falta completar el nombre");
	public static $NOMBRE_LENGTH_LARGER_50_CHARS = array("type" => Message::TYPE_ERROR, "code" => "nombre_length_larger_50_chars", "text" => "El nombre no puede tener m&aacute;s de 50 caracteres");
	public static $EMAIL_CANT_EMPTY = array("type" => Message::TYPE_ERROR, "code" => "email_cant_empty", "text" => "Falta completar el email");
	public static $EMAIL_LENGTH_LARGER_50_CHARS = array("type" => Message::TYPE_ERROR, "code" => "email_length_larger_50_chars", "text" => "El email no puede tener m&aacute;s de 50 caracteres");
	public static $EMAIL_NOT_VALID = array("type" => Message::TYPE_ERROR, "code" => "email_not_valid", "text" => "El email no es v&aacute;lido");
	public static $TELEFONO_CANT_EMPTY = array("type" => Message::TYPE_ERROR, "code" => "telefono_cant_empty", "text" => "Falta completar el tel&eacute;fono");
	public static $TELEFONO_LENGTH_LARGER_50_CHARS = array("type" => Message::TYPE_ERROR, "code" => "telefono_length_larger_50_chars", "text" => "El tel&eacute;fono no puede tener m&aacute;s de 50 caracteres");
	public static $MENSAJE_CANT_EMPTY = array("type" => Message::TYPE_ERROR, "code" => "mensaje_cant_empty", "text" => "Falta completar el mensaje");
	public static $MENSAJE_LENGTH_LARGER_300_CHARS = array("type" => Message::TYPE_ERROR, "code" => "mensaje_length_larger_300_chars", "text" => "El mensaje no puede tener m&aacute;s de 300 caracteres");	

	public static $CONTACTO_SEND_SUCCESS = array("type" => Message::TYPE_SUCCESS, "code" => "contacto_send_success", "text" => "Su mensaje ha sido enviado correctamente");
	public static $CONTACTO_SEND_FAIL = array("type" => Message::TYPE_ERROR, "code" => "contacto_send_fail", "text" => "Ha ocurrido un error. Intente m&aacute;s tarde");
}

?>